Day 14 - Regular expressions - Classes
85
$ cat examples.txt | grep -E "[-]"
R2-D2
Spider-Man [*]
C-3PO
Go back to the exercise
Exercise 14.11
Match any line of examples.txt containing a left square bracket “[”
Solution
$ cat examples.txt | grep -E "[[]"
Spider-Man [*]
Go back to the exercise